package com.neusoft.oa.controller;


import com.neusoft.oa.pojo.SysMenu;
import com.neusoft.oa.service.ISysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/menu")
@CrossOrigin
public class SysMenuController {

    @Autowired
    ISysMenuService sysMenuService;

    @RequestMapping("list")
    public java.util.List<SysMenu> list(int roleId){
        return sysMenuService.sysMenuList(roleId);
    }

}
